package com.biodiv.community.manager.mq;

import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.stereotype.Component;
import org.springframework.util.ErrorHandler;

/**
 * @author: tianquan
 * @date: 2025-07-12  01:40
 */
@Slf4j
@Component
public class MessageErrorHandler implements ErrorHandler {
    @Override
    public void handleError(@NotNull Throwable throwable) {
        // 发送异常消息给我的邮箱
        log.error("消息处理异常: ", throwable);
    }

}
